#include <iostream>

#include <thread>
#include <mutex>
#include <chrono>

#include "logging.h"
/*
#include <boost/date_time/posix_time/posix_time.hpp>
#include <sstream>
*/

using namespace std;

int main(){
    //tcorb::logging::setLogLevel(tcorb::logging::LogLevel::DEBUG);
    LOG_FILE("logfilell");
    LOG_LEVEL(INFO);
    LOG_DEBUG("debug");
    LOG_INFO("real %1% %2% %3% %4% %5%", 3.14, true, "blablabla", string("string"), 5);
    LOG_TRACE("trace");
    LOG_FATAL("fatal");
    
    std::chrono::seconds check_interval1(1);
    std::chrono::seconds check_interval2(2);
    std::chrono::seconds check_interval3(3);
    std::chrono::seconds check_interval4(4);
    std::chrono::seconds check_interval5(5);
    std::chrono::seconds check_interval6(6);

    std::this_thread::sleep_for(check_interval1);
    for(auto i=1; i<5; ++i) {
    LOG_INFO("info %1%", i);
    }
    std::this_thread::sleep_for(check_interval2);
    for(auto i=1; i<5; ++i) {
    LOG_INFO("info %1%", i);
    }
    std::this_thread::sleep_for(check_interval3);
    for(auto i=1; i<25; ++i) {
    LOG_INFO("info %1%", i);
    }
    std::this_thread::sleep_for(check_interval4);
    for(auto i=1; i<50; ++i) {
    LOG_INFO("info %1%", i);
    }

    std::this_thread::sleep_for(check_interval6);


}


